<extend name="Public/base" />
<block name="body" >
<div class="main_sub wrap_w">
    <div class="crumbs"><em>当前位置：</em><a href="{:U('Game/game_list')}">游戏中心</a></div>
    <div id="gameshow" class="clearfix">
        <div class="l">
            <div class="gameinti">
                <div class="gameintile"> 
					<img id="img_Icon" src="{$data.icon|get_cover='path'}" style="height:165px;width:165px;"> 
					<span class="score"> {$data.game_score} </span> 
				</div>
                <div class="gameintiri">
                    <div class="gameintiritit">
                        <h3><?php echo preg_replace('/(\(.+)/i','',$data['game_name']);?></h3>
                        <p>游戏版本：{$data.version}</p>
                        <p>游戏大小：{$data.game_size}</p>
                        <!-- <p>游戏特征：{$data.features}</p> -->
                        <p>更新时间：{$data.create_time|date="Y-m-d",###}</p>
                        <p>游戏简介：{$data['features']}</p>
                    </div>
                    <div class="gaminwex"> 
                        <span><img id="img_QRCode" src="{:U('Game/dow_url_generate?game_id='.$data['id'])}" style="height:110px;width:110px;"> <br>扫一扫 </span>
                    </div>
                    <div class="gaindow"> 
                        <if condition='$data.and_dow_address eq "" && $data.add_game_address eq ""'><else/>
                            <a  href="<if condition='$data.dow_status eq 0'>#<else/>{:U('Down/down_file?game_id='.$data['and_id'].'&type=1')}</if>" class="doandr"> 安卓下载 </a>
                        </if>
                        <if condition='$data.ios_dow_address eq "" && $data.ios_game_address eq ""'><else/>
                            <a  href="<if condition='$data.dow_status eq 0'>#<else/>{:U('Down/down_file?game_id='.$data['ios_id'].'&type=2')}</if>" class="doandr"> 苹果下载 </a>
                        </if>
                        <if condition='$data.and_dow_address eq "" && $data.add_game_address eq "" && $data.ios_dow_address eq "" &&  $data.ios_game_address eq "" '><a  class="doandr" style="background-color: #dc2d11">暂无下载</a></if>
                        <a id="cuow" style="float:right;color:#D1D1D1;text-align:center;width:90px;padding-right:5px;height:40px"><i></i>错误反馈</a> 
                    </div>
                </div>
            </div>
            <div class="gameincount">
                <h3 class="gamtiti"><span>详细介绍</span></h3>
                <div class="intro">　
					{$data.introduction}
				</div>
                <h3 class="gamtiti"><span>游戏截图</span></h3>
                <div class="gaminimg">
                    <div class="clearfix">
					<volist name=":explode(',',$data['screenshot'])" id='pid'>
					<if condition='!empty($pid)'>
					<div class="snopshot" id="snopshot4"> 
						<img src="{$pid|get_cover='path'}" alt="{$data.game_name}截图"> 
						<span class="elementOverlay"></span> 
					</div>
					</if>
					</volist>
					</div>
                </div>
            </div>
        </div>
        <div class="r">
            {:W('Base/ranking');}
        </div>
    </div>
</div>
<input type="hidden" id="game_id" value="{$data.id}" />
<input type="hidden" id="game_name" value="{$data.game_name}" />
<script>
$(document).ready(function(){
   $("#cuow").click(function(){   
    $.ajax({
        type:'POST',
        url:'media.php?s=/Game/error_mesg',
        data:{'game_name':$("#game_name").val(),'game_id':$("#game_id").val()},
        dataType:'json',
        success:function(data){
                if(data.msg=="ok"){
                    alert("错误反馈成功！！我们将尽快解决");
                }else if(data.msg=="no"){
                      alert("您已经反馈过此问题，我们将尽快解决");
                }else if(data.msg=="no-login"){
                    alert("请先登录");
                }else{
                    alert("数据异常");
                }
        },
        error:function(){
        alert('数据错误');
        }
    });                      
});   
});
</script>
</block>